
#import "WWSampleGeneratorInfo.h"

@implementation WWSampleGeneratorInfo

- init
{
   [super init];

   name = NULL;
   weight = 1.0;

   return self;
}

- setName:(const char *)newCurrentSampleGeneratorName weight:(float)newWeight
{
   [self setName:newCurrentSampleGeneratorName];
   [self setWeight:newWeight];

   return self;
}

- setWeight:(float)newWeight
{
  weight = newWeight; 
  return self;
}

- (float)weight { return weight; }

- setName:(const char *)newName
{  
   if (name)
   {  free(name);
   }
   name = NXCopyStringBuffer(newName);
   return self;
}

- (const char *)name { return (const char *)name; }

@end
